﻿<UserControl x:Class="EPE.WPF.UCPassWord"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*"></RowDefinition>
        </Grid.RowDefinitions>

        <GroupBox Header="请输入新密码" Grid.Row="0" Height="150" Width="300" Style="{StaticResource GroupBoxStyle}">
            <Grid Style="{StaticResource BorderGridStyle}">
                <Grid.RowDefinitions>
                    <RowDefinition Height="35"/>
                    <RowDefinition Height="35"/>
                    <RowDefinition Height="35"/>
                    <RowDefinition Height="35"/>
                    <RowDefinition Height="35"/>
                    <RowDefinition Height="35"/>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="80"/>
                    <ColumnDefinition Width="150"/>
                </Grid.ColumnDefinitions>
                <Label Grid.Row="0" Grid.Column="0" Content="新密码" VerticalAlignment="Center" Style="{StaticResource LabelStyle}" />
                <PasswordBox Grid.Row="0" Grid.Column="1" MaxLength="8" Name="txtNew" VerticalAlignment="Center" Style="{StaticResource PasswordBoxStyle}"></PasswordBox>
                <Label Grid.Row="1" Grid.Column="0" Content="确认新密码" VerticalAlignment="Center" Style="{StaticResource LabelStyle}" />
                <PasswordBox Grid.Row="1" Grid.Column="1" MaxLength="8" Name="txtCommit" VerticalAlignment="Center" Style="{StaticResource PasswordBoxStyle}"></PasswordBox>
                <Button Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2" Style="{StaticResource ButtonStyle}"  Name="btnOk" Click="btnOk_Click" >
                    <StackPanel Orientation="Horizontal" >
                        <Image Source="/resources/image/close09.png" Stretch="Fill" Style="{StaticResource ButtonImageStyle}"></Image>
                        <Label Content="确定" HorizontalAlignment="Center"  Style="{StaticResource ButtonLabelStyle}"></Label>
                    </StackPanel>
                </Button>
            </Grid>
        </GroupBox>
    </Grid>
</UserControl>
